import { useState } from "react";
import HeadBar from "./Components/HeadBar";
import MonitorPanel from "./Components/MonitorPanel";


export default function App() {
  const [mode, setMode] = useState<string>("入侵检测");
  return (
    <>
      <HeadBar title={mode} setMode={setMode} />
      <MonitorPanel mode={mode} />
    </>
  );
}